package com.leyou.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum ExceptionEnum {
    BRAND_NOT_FOUND(404, "品牌没有查到"),
    CATEGORY_NOT_FOUND(404,"商品分类没查到"),
    GOODS_NOT_FOUND(404,"商品没查到"),
    GOODS_DETAIL_NOT_FOUND(404,"商品详情没查到"),
    GOODS_SKU_NOT_FOUND(404,"商品SKU没查到"),
    GOODS_STOCKNOT_FOUND(404,"商品库存没查到"),
    SPEC_GROUP_NOT_FOUND(404,"商品规格参数组没查到"),
    SPEC_PARAM_NOT_FOUND(404,"商品规格参数没查到"),
    BRAND_SAVE_ERROR(500, "新增品牌失败"),
    GOODS_SAVE_ERROR(500, "新增商品失败"),
    SPEC_GRTOUP_SAVE_ERROR(500, "商品规格参数新增失败"),
    GOODS_UPDATE_ERROR(500, "商品修改失败"),
    GOODS_DETAIL_UPDATE_ERROR(500, "商品详情修改失败"),
    SPEC_GRTOUP_DEL_ERROR(500, "商品规格参数删除失败"),
    UPLOAD_FILE_ERROE(500, "文件上传失败"),
    INVALID_FILE_TYPE(400, "无效文件类型")
    ;
    private int code;
    private String msg;
}
